import server from '@/config/server/index.js'

function post(path, auth = true, config = true) {
  return server.api().post(path).auth(auth).config(config)
}

let api = {
  citySetting: post('/sa-admin/api/v1/baseCity/citysetting'), //城市分页列表
  citySettingTip: post('/sa-admin/api/v1/baseCity/citysetting/tip') ////城市tips
}

function citySetting(data) {
  return api.citySetting.fetch(data)
}

function citySettingTip(data) {
  return api.citySettingTip.fetch(data)
}

export default {
  citySetting,
  citySettingTip
}
